import { $hotel_get,$hotel_post } from "../utils/request.ts";

//获取房型列表
export const $list = async() =>{
    let ret  = await $hotel_get('roomType/findAll')
    return ret
}

//添加房型
export const $add = async (fd:object)=>{
    let ret = await $hotel_post('roomType/save',fd)
    return ret
}
//根据id查找房型
export const $findById = async(params:object) =>{
    let ret = await $hotel_get('roomType/findById',params)
    return ret
}


export const $findFacility = async() =>{
    let ret  = await $hotel_get ('roomType/findFacility')
    return ret.data
}

export const $update = async(fd:object) =>{
    let ret  = await $hotel_post ('roomType/update',fd)
    return ret
}



